<?php

/*
 * This file is part of the Geek-Zoo Projects.
 *
 * @copyright (c) 2010 Geek-Zoo Projects More info http://www.geek-zoo.com
 * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License
 * @author xuanyan <xuanyan@geek-zoo.com>
 *
 */

class Smarty3
{
    private static $instance = null;

    public static function instance()
    {
        if (self::$instance === null) {
            // set smarty config
            self::$instance = new Smarty();
            self::$instance->setTemplateDir(ROOT_PATH.'/Templates/');
            self::$instance->compile_dir = ROOT_PATH.'/tmp/compile/';
        }

        return self::$instance;
    }
}

?>